<!DOCTYPE html>



  


<html class="theme-next pisces use-motion" lang="">
<head>
  <meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<meta name="theme-color" content="#222">









<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
















  
  
  <link href="/blog/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css" />







<link href="/blog/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css" />

<link href="/blog/css/main.css?v=5.1.4" rel="stylesheet" type="text/css" />


  <link rel="apple-touch-icon" sizes="180x180" href="/blog/images/apple-touch-icon-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="32x32" href="/blog/images/favicon-32x32-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="16x16" href="/blog/images/favicon-16x16-next.png?v=5.1.4">


  <link rel="mask-icon" href="/blog/images/logo.svg?v=5.1.4" color="#222">





  <meta name="keywords" content="Hexo, NexT" />










<meta name="description" content="BaseRecyclerViewAdapterHelper项目下载">
<meta name="keywords" content="Android、iOS、Web、React Native">
<meta property="og:type" content="article">
<meta property="og:title" content="Android-BaseRecyclerViewAdapterHelper使用">
<meta property="og:url" content="http://yoursite.com/blog/2018/08/06/Android-Framework/Android-BaseRecyclerViewAdapterHelper使用/index.html">
<meta property="og:site_name" content="凌浩雨_博客">
<meta property="og:description" content="BaseRecyclerViewAdapterHelper项目下载">
<meta property="og:locale" content="default">
<meta property="og:updated_time" content="2018-08-06T11:13:06.336Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Android-BaseRecyclerViewAdapterHelper使用">
<meta name="twitter:description" content="BaseRecyclerViewAdapterHelper项目下载">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/blog/',
    scheme: 'Pisces',
    version: '5.1.4',
    sidebar: {"position":"left","display":"post","offset":12,"b2t":false,"scrollpercent":false,"onmobile":false},
    fancybox: true,
    tabs: true,
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    duoshuo: {
      userId: '0',
      author: 'Author'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="http://yoursite.com/blog/2018/08/06/Android-Framework/Android-BaseRecyclerViewAdapterHelper使用/"/>





  <title>Android-BaseRecyclerViewAdapterHelper使用 | 凌浩雨_博客</title>
  








</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="default">

  
  
    
  

  <div class="container sidebar-position-left page-post-detail">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/blog/"  class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">凌浩雨_博客</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <p class="site-subtitle"></p>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/blog/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br />
            
            Home
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/blog/archives/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br />
            
            Archives
          </a>
        </li>
      

      
    </ul>
  

  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="http://yoursite.com/blog/blog/2018/08/06/Android-Framework/Android-BaseRecyclerViewAdapterHelper使用/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="凌浩雨">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/blog/images/avatar.jpeg">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="凌浩雨_博客">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">Android-BaseRecyclerViewAdapterHelper使用</h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">Posted on</span>
              
              <time title="Post created" itemprop="dateCreated datePublished" datetime="2018-08-06T18:01:38+08:00">
                2018-08-06
              </time>
            

            

            
          </span>

          

          
            
          

          
          

          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        <p>BaseRecyclerViewAdapterHelper<a href="https://github.com/CymChad/BaseRecyclerViewAdapterHelper" target="_blank" rel="noopener">项目下载</a></p>
<a id="more"></a>
<p>####1 . 使用<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br></pre></td><td class="code"><pre><span class="line">// 基类                             具体实现类       布局                   数据源</span><br><span class="line">BaseQuickAdapter homeAdapter = new HomeAdapter(R.layout.home_item_view, mDataList);</span><br><span class="line">homeAdapter.openLoadAnimation(); // 开启动画</span><br><span class="line">// 加载头布局</span><br><span class="line">View top = getLayoutInflater().inflate(R.layout.top_view, (ViewGroup) mRecyclerView.getParent(), false);</span><br><span class="line">// 添加头布局</span><br><span class="line">homeAdapter.addHeaderView(top);</span><br><span class="line">// 设置点击事件</span><br><span class="line">homeAdapter.setOnItemClickListener(new BaseQuickAdapter.OnItemClickListener() &#123;</span><br><span class="line">    @Override</span><br><span class="line">    public void onItemClick(BaseQuickAdapter adapter, View view, int position) &#123;</span><br><span class="line">          Log.e(&quot;adapter&quot;, &quot;点击&quot;);</span><br><span class="line">    &#125;</span><br><span class="line">&#125;);</span><br><span class="line">// 设置适配器</span><br><span class="line">mRecyclerView.setAdapter(homeAdapter);</span><br></pre></td></tr></table></figure></p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br></pre></td><td class="code"><pre><span class="line">// 继承自BaseQuickAdapter的适配器                   实体类</span><br><span class="line">public class HomeAdapter extends BaseQuickAdapter&lt;HomeItem, BaseViewHolder&gt; &#123;</span><br><span class="line">    </span><br><span class="line">    public HomeAdapter(int layoutResId, List data) &#123;</span><br><span class="line">        super(layoutResId, data);</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    @Override</span><br><span class="line">    protected void convert(BaseViewHolder helper, HomeItem item) &#123;</span><br><span class="line">        // 设置文本</span><br><span class="line">        helper.setText(R.id.text, item.getTitle()); </span><br><span class="line">        // 设置图片</span><br><span class="line">        helper.setImageResource(R.id.icon, item.getImageResource());</span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>
<p>####2. api介绍</p>
<p>#####adapter.openLoadAnimation();<br>开启显示时条目动画</p>
<p>#####adapter.openLoadAnimation(BaseQuickAdapter.ALPHAIN);<br>设置开启动画的类型，可选类型有</p>
<ul>
<li>BaseQuickAdapter.ALPHAIN 透明动画</li>
<li>BaseQuickAdapter.SCALEIN 缩放动画</li>
<li>BaseQuickAdapter.SLIDEIN_BOTTOM 底部滑入</li>
<li>BaseQuickAdapter.SLIDEIN_LEFT  左边滑入</li>
<li>BaseQuickAdapter.SLIDEIN_RIGHT 右边滑入<br>该参数可以自定义adapter.openLoadAnimation(new CustomAnimation());其中CustomAnimation继承在BaseAnimation，代码如下<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line">public class CustomAnimation implements BaseAnimation &#123;</span><br><span class="line"></span><br><span class="line">    @Override</span><br><span class="line">    public Animator[] getAnimators(View view) &#123;</span><br><span class="line">        return new Animator[]&#123;</span><br><span class="line">                ObjectAnimator.ofFloat(view, &quot;scaleY&quot;, 1, 1.1f, 1),</span><br><span class="line">                ObjectAnimator.ofFloat(view, &quot;scaleX&quot;, 1, 1.1f, 1)</span><br><span class="line">        &#125;;</span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>
</li>
</ul>
<p>#####adapter.isFirstOnly(false);<br>设置是否仅在第一次加载时显示动画。设置true时，当数据上滑时出现动画，下滑时无动画出现；设置false时，仅在上滑时出现动画.</p>
<p>#####adapter.setNotDoAnimationCount(3);<br>设置第一屏显示不做动画的数量</p>
<p>#####adapter.setOnItemClickListener(listener);    adapter.setOnItemLongClickListener(listener);<br>设置条目点击与长点击</p>
<p>#####adapter.setOnItemChildClickListener(listener);  adapter.setOnItemChildLongClickListener(listener);<br>设置监听事件,其中根据view的id来区分点击的是哪一个控件<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br></pre></td><td class="code"><pre><span class="line">adapter.setOnItemChildClickListener(new BaseQuickAdapter.OnItemChildClickListener() &#123;</span><br><span class="line">    @Override</span><br><span class="line">    public void onItemChildClick(BaseQuickAdapter adapter, View view, int position) &#123;</span><br><span class="line">        switch (view.getId()) &#123;</span><br><span class="line">            case R.id.img:</span><br><span class="line">                Log.e(&quot;adapter&quot;,&quot;img&quot;);</span><br><span class="line">                break;</span><br><span class="line">            case R.id.tweetName:</span><br><span class="line">                Log.e(&quot;adapter&quot;,&quot;tweetName&quot;);</span><br><span class="line">                break;</span><br><span class="line">                break;</span><br><span class="line">            default:</span><br><span class="line">                break;</span><br><span class="line">        &#125;</span><br><span class="line">    &#125;</span><br><span class="line">&#125;);</span><br></pre></td></tr></table></figure></p>
<p>#####adapter.addHeaderView(headerView);<br>添加一个头布局</p>
<p>#####adapter.addFooterView(footerView, 0);<br>添加一个尾布局</p>
<p>#####adapter.setOnLoadMoreListener(new BaseQuickAdapter.RequestLoadMoreListener() {}, mRecyclerView);<br>加载更多，其中下拉刷新使用  SwipeRefreshLayout</p>
<p>#####adapter.setOnItemChildClickListener(listener);<br>设置条目中子控件的点击事件</p>
<p>#####adapter.setEmptyView(errorView);<br>设置一个空的布局，可用于网络异常，无数据的情况下</p>
<p>#####adapter.enableSwipeItem();     adapter.setOnItemSwipeListener(onItemSwipeListener);  adapter.enableDragItem(mItemTouchHelper);      adapter.setOnItemDragListener(listener);<br>设置允许左滑右滑动条目<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br></pre></td><td class="code"><pre><span class="line">private ItemTouchHelper mItemTouchHelper;</span><br><span class="line">private ItemDragAndSwipeCallback mItemDragAndSwipeCallback;</span><br><span class="line">mItemDragAndSwipeCallback = new ItemDragAndSwipeCallback(mAdapter);</span><br><span class="line">mItemTouchHelper = new ItemTouchHelper(mItemDragAndSwipeCallback);</span><br><span class="line">mItemTouchHelper.attachToRecyclerView(mRecyclerView);</span><br><span class="line">// 设置滑动方向，拖拽方向</span><br><span class="line">//mItemDragAndSwipeCallback.setDragMoveFlags(ItemTouchHelper.LEFT | ItemTouchHelper.RIGHT | ItemTouchHelper.UP | ItemTouchHelper.DOWN);</span><br><span class="line">mItemDragAndSwipeCallback.setSwipeMoveFlags(ItemTouchHelper.START | ItemTouchHelper.END);</span><br><span class="line">mAdapter.enableSwipeItem();</span><br><span class="line">mAdapter.setOnItemSwipeListener(onItemSwipeListener);</span><br><span class="line">mAdapter.enableDragItem(mItemTouchHelper);</span><br><span class="line">mAdapter.setOnItemDragListener(listener);</span><br></pre></td></tr></table></figure></p>
<p>#####</p>
<p>#####</p>
<p>####3. 多条目适配器<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br></pre></td><td class="code"><pre><span class="line">public class MultipleItemQuickAdapter extends BaseMultiItemQuickAdapter&lt;MultipleItem, BaseViewHolder&gt; &#123;</span><br><span class="line"></span><br><span class="line">    public MultipleItemQuickAdapter(Context context, List data) &#123;</span><br><span class="line">        super(data);</span><br><span class="line">        addItemType(MultipleItem.TEXT, R.layout.item_text_view);</span><br><span class="line">        addItemType(MultipleItem.IMG, R.layout.item_image_view);</span><br><span class="line">        addItemType(MultipleItem.IMG_TEXT, R.layout.item_img_text_view);</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    @Override</span><br><span class="line">    protected void convert(BaseViewHolder helper, MultipleItem item) &#123;</span><br><span class="line">        switch (helper.getItemViewType()) &#123;</span><br><span class="line">            case MultipleItem.TEXT:</span><br><span class="line">                helper.setText(R.id.tv, item.getContent());</span><br><span class="line">                break;</span><br><span class="line">            case MultipleItem.IMG_TEXT:</span><br><span class="line">                switch (helper.getLayoutPosition() %</span><br><span class="line">                        2) &#123;</span><br><span class="line">                    case 0:</span><br><span class="line">                        helper.setImageResource(R.id.iv, R.mipmap.animation_img1);</span><br><span class="line">                        break;</span><br><span class="line">                    case 1:</span><br><span class="line">                        helper.setImageResource(R.id.iv, R.mipmap.animation_img2);</span><br><span class="line">                        break;</span><br><span class="line">                    default:</span><br><span class="line">                        break;</span><br><span class="line">                &#125;</span><br><span class="line">            default:</span><br><span class="line">                break;</span><br><span class="line">        &#125;</span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure></p>
<p>数据源<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br></pre></td><td class="code"><pre><span class="line">// 实现MultiItemEntity接口</span><br><span class="line">public class MultipleItem implements MultiItemEntity &#123;</span><br><span class="line">    public static final int TEXT = 1;</span><br><span class="line">    public static final int IMG = 2;</span><br><span class="line">    public static final int IMG_TEXT = 3;</span><br><span class="line">    private int itemType;</span><br><span class="line">    public MultipleItem(int itemType) &#123;</span><br><span class="line">        this.itemType = itemType;</span><br><span class="line">    &#125;</span><br><span class="line">    @Override</span><br><span class="line">    public int getItemType() &#123;</span><br><span class="line">        return itemType;</span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure></p>
<p>####4. 分组条目适配器<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br></pre></td><td class="code"><pre><span class="line">// 继承自BaseSectionQuickAdapter</span><br><span class="line">public class SectionAdapter extends BaseSectionQuickAdapter&lt;MySection, BaseViewHolder&gt; &#123;</span><br><span class="line">    /**</span><br><span class="line">     * 构造方法</span><br><span class="line">     * @param sectionHeadResId 头布局</span><br><span class="line">     * @param layoutResId      条目布局</span><br><span class="line">     * @param data             数据</span><br><span class="line">     */</span><br><span class="line">    public SectionAdapter(int layoutResId, int sectionHeadResId, List data) &#123;</span><br><span class="line">        super(layoutResId, sectionHeadResId, data);</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    @Override</span><br><span class="line">    protected void convertHead(BaseViewHolder helper, final MySection item) &#123;</span><br><span class="line">        helper.setText(R.id.header, item.header);</span><br><span class="line">        helper.setVisible(R.id.more, item.isMore());</span><br><span class="line">        helper.addOnClickListener(R.id.more);</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">    @Override</span><br><span class="line">    protected void convert(BaseViewHolder helper, MySection item) &#123;</span><br><span class="line">        Video video = (Video) item.t;</span><br><span class="line">        switch (helper.getLayoutPosition() %</span><br><span class="line">                2) &#123;</span><br><span class="line">            case 0:</span><br><span class="line">                helper.setImageResource(R.id.iv, R.mipmap.m_img1);</span><br><span class="line">                break;</span><br><span class="line">            case 1:</span><br><span class="line">                helper.setImageResource(R.id.iv, R.mipmap.m_img2);</span><br><span class="line">                break;</span><br><span class="line">            default:</span><br><span class="line">                break;</span><br><span class="line">        &#125;</span><br><span class="line">        helper.setText(R.id.tv, video.getName());</span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure></p>
<p>实体类<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line">// 继承SectionEntity</span><br><span class="line">public class MySection extends SectionEntity&lt;Video&gt; &#123;</span><br><span class="line">    public MySection(boolean isHeader, String header) &#123;</span><br><span class="line">        super(isHeader, header);</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    public MySection(Video t) &#123;</span><br><span class="line">        super(t);</span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure></p>

      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      

      
      
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/blog/2018/08/06/Android-Framework/Andorid-Freemarker与template-js使用/" rel="next" title="Andorid-Freemarker与template-js使用">
                <i class="fa fa-chevron-left"></i> Andorid-Freemarker与template-js使用
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/blog/2018/08/06/Android-Framework/Android-Dagger2依赖注入/" rel="prev" title="Android-Dagger2依赖注入">
                Android-Dagger2依赖注入 <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </div>
  
  
  
  </article>



    <div class="post-spread">
      
    </div>
  </div>


          </div>
          


          

  



        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      

      <section class="site-overview-wrap sidebar-panel sidebar-panel-active">
        <div class="site-overview">
          <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
            
              <img class="site-author-image" itemprop="image"
                src="/blog/images/avatar.jpeg"
                alt="凌浩雨" />
            
              <p class="site-author-name" itemprop="name">凌浩雨</p>
              <p class="site-description motion-element" itemprop="description">专业从事于移动端开发，Android与iOS均有涉及，主做Android开发与React Native开发</p>
          </div>

          <nav class="site-state motion-element">

            
              <div class="site-state-item site-state-posts">
              
                <a href="/blog/archives/">
              
                  <span class="site-state-item-count">393</span>
                  <span class="site-state-item-name">posts</span>
                </a>
              </div>
            

            

            

          </nav>

          

          

          
          

          
          

          

        </div>
      </section>

      

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright">&copy; <span itemprop="copyrightYear">2018</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">凌浩雨</span>

  
</div>


  <div class="powered-by">Powered by <a class="theme-link" target="_blank" href="https://hexo.io">Hexo</a></div>



  <span class="post-meta-divider">|</span>



  <div class="theme-info">Theme &mdash; <a class="theme-link" target="_blank" href="https://github.com/iissnan/hexo-theme-next">NexT.Pisces</a> v5.1.4</div>




        







        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
      </div>
    

    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  












  
  
    <script type="text/javascript" src="/blog/lib/jquery/index.js?v=2.1.3"></script>
  

  
  
    <script type="text/javascript" src="/blog/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>
  

  
  
    <script type="text/javascript" src="/blog/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>
  

  
  
    <script type="text/javascript" src="/blog/lib/velocity/velocity.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/blog/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/blog/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
  


  


  <script type="text/javascript" src="/blog/js/src/utils.js?v=5.1.4"></script>

  <script type="text/javascript" src="/blog/js/src/motion.js?v=5.1.4"></script>



  
  


  <script type="text/javascript" src="/blog/js/src/affix.js?v=5.1.4"></script>

  <script type="text/javascript" src="/blog/js/src/schemes/pisces.js?v=5.1.4"></script>



  
  <script type="text/javascript" src="/blog/js/src/scrollspy.js?v=5.1.4"></script>
<script type="text/javascript" src="/blog/js/src/post-details.js?v=5.1.4"></script>



  


  <script type="text/javascript" src="/blog/js/src/bootstrap.js?v=5.1.4"></script>



  


  




	





  





  












  





  

  

  

  
  

  

  

  

</body>
</html>
